Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Authentication.​ISecureDataFormat<​TData>

Assembly: Microsoft.AspNetCore.Authentication

A contract for securing data.

Methods

string
Protect​(TData data)
Protects the specified <paramref name="data" /> .
Returns The data protected value.
data The value to protect
string
Protect​(TData data, string purpose)
Protects the specified <paramref name="data" /> for the specified <paramref name="purpose" /> .
Returns A data protected value.
data The value to protect
purpose The purpose.
TData
Unprotect​(string protectedText)
Unprotects the specified <paramref name="protectedText" /> .
Returns An instance of <typeparamref name="TData" /> .
protectedText The data protected value.
TData
Unprotect​(string protectedText, string purpose)
Unprotects the specified <paramref name="protectedText" /> using the specified <paramref name="purpose" /> .
Returns An instance of <typeparamref name="TData" /> .
protectedText The data protected value.
purpose The purpose.